Skip to content

desk: Grok hook → registry, installer wiring, version-pin report, --sessions/--export (#5706 PR-D) - #5

Open
chasehuh wants to merge 1 commit into
desk/5706-b-formatterfrom
desk/5706-d-hooks-registry
Open

desk: Grok hook → registry, installer wiring, version-pin report, --sessions/--export (#5706 PR-D)#5
chasehuh wants to merge 1 commit into
desk/5706-b-formatterfrom
desk/5706-d-hooks-registry

Conversation

@chasehuh

@chasehuh chasehuh commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Implements sumelabs/sume#5706 (desk Grok Build harness at Codex-class long-session resolution). Stacked: A → C → B → D → E; merge in that order (each PR bases on the previous branch). After landing on main: cd ~/.cstack/src && git stash && git pull && git stash drop && ./install.sh --sume-com ~/sume/sume-com (the desk tree has the same Fable 5.1 edits uncommitted; PR-A carries them as its first commit).

What

  • bin/grok-desk-hook.sh + sume-desk/grok-hooks/sume-desk.json.tmpl: Stop / StopFailure / SessionEnd / PostCompact append hook_* registry rows; silent, exit 0. install.sh writes ~/.grok/hooks/sume-desk.json with the absolute path.
  • install.sh links agent-holders, runs the new test suites, prints which Grok binary actually runs (tokenmaxxing grokBin pin, 1.0.11) vs ~/.grok/bin/grok (1.0.13). check-wiring.sh asserts the hook + helper.
  • agent-human-stream --sessions [--backend grok|claude] one-line rows; --export <uuid>opus-live/<uuid>.transcript.md.

🤖 Generated with Claude Code

@chasehuh
chasehuh force-pushed the desk/5706-b-formatter branch from 75b5b3c to eccf012 Compare September 2, 2026 00:31
@chasehuh
chasehuh force-pushed the desk/5706-d-hooks-registry branch from b4c9f1c to 4798315 Compare September 2, 2026 00:31
…essions/--export (#5706 PR-D)

- bin/grok-desk-hook.sh + sume-desk/grok-hooks/sume-desk.json.tmpl: Stop /
  StopFailure / SessionEnd / PostCompact append hook_* rows (sessionId, reason,
  error, compaction tokens) to ~/.cstack/state/opus-sessions.jsonl; silent, exit 0.
- install.sh writes ~/.grok/hooks/sume-desk.json with the absolute hook path,
  links agent-holders on PATH, runs the new test suites, and prints which Grok
  binary actually runs (tokenmaxxing config.json grokBin pin) vs ~/.grok/bin/grok.
- check-wiring.sh asserts the hook file and agent-holders.
- agent-human-stream --sessions [--backend grok|claude] prints one line per row
  with model / exit / landed / context; --export <uuid> runs grok export into
  ~/.cstack/state/opus-live/<uuid>.transcript.md (global by uuid).

Refs sumelabs/sume#5706
@chasehuh
chasehuh force-pushed the desk/5706-b-formatter branch from eccf012 to f6e0462 Compare September 2, 2026 00:33
@chasehuh
chasehuh force-pushed the desk/5706-d-hooks-registry branch from 4798315 to f5dd97f Compare September 2, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant